$OpenBSD: patch-third_party_protobuf_src_google_protobuf_stubs_atomicops_h,v 1.3 2013/04/03 08:19:10 robert Exp $
--- third_party/protobuf/src/google/protobuf/stubs/atomicops.h.orig.port	Fri Mar 22 02:13:26 2013
+++ third_party/protobuf/src/google/protobuf/stubs/atomicops.h	Tue Apr  2 21:05:18 2013
@@ -77,7 +77,11 @@ typedef intptr_t Atomic64;
 
 // Use AtomicWord for a machine-sized pointer.  It will use the Atomic32 or
 // Atomic64 routines below, depending on your architecture.
+#if defined(__OpenBSD__) && defined(__i386__)
+typedef Atomic32 AtomicWord;
+#else
 typedef intptr_t AtomicWord;
+#endif
 
 // Atomically execute:
 //      result = *ptr;
